package com.inspinia.base.util.properties;

import java.util.ResourceBundle;

/**
 * Created by lijr on 2016/9/12.
 */
public class HttpConfig {

    /**
     * 读取http.properties的配置数据
     */
    public static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle("http");
    public static String getString(String key) {
        return RESOURCE_BUNDLE.getString(key);
    }
    //获取ip地址和端口号
    public static final String httpIp = getString("http.ip");
    //获取连接超时时间
    public static final String connectionTime = getString("connection.time");
    //等待数据超时时间
    public static final String readTimeout = getString("read.timeout");

}
